package com.lanou.dormitory.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.lanou.dormitory.entity.Company;
import com.lanou.dormitory.entity.Company;

public interface CompanyMapper {
	public List<Company> getAll();
	
	public Company getCompayByName(@Param("cname")String cname);
	
	public void add(@Param("cname")String cname,@Param("cnote")String cnote);
	
    public Company getById(@Param("cid")Integer cid);
	
	public void update(Company com);
	
	public void delById(@Param("cid")Integer cid);
}
